package com.uum.blog.pojo.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class BlogVO {

    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "作者名字")
    private String author;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "是否发布 0草稿(未发布) 1已发布")
    private Integer isRelease;

    @ApiModelProperty(value = "是否置顶 0 否 1是")
    private Integer isTop;

    @ApiModelProperty(value = "是否开启评论 0否 1是")
    private Integer isComment;

    @ApiModelProperty(value = "分类ID")
    private Long categoryId;

    @ApiModelProperty(value = "分类名字")
    private String categoryName;

    @ApiModelProperty(value = "标签名字")
    private List<String> tagsName;

    @ApiModelProperty(value = "标签IDS")
    private List<Long> tagIds;

    @ApiModelProperty(value = "文章评论的数量")
    private Integer commentCount;

    @ApiModelProperty(value = "点击文章的数量")
    private Integer clickNum;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifiedTime;


}
